/**
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-3-15
 * 
**/
package com.julewa.db.ibatis;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.julewa.db.ibatis.loading.IbatisLoader;


public class IbatisTestLoader{
	private static SqlMapClient sqlMap = null;
	public static void load(String conf){
		sqlMap = IbatisLoader.loadIbatis(conf);
	}
	public static void load(){
		String conf = "ibatis.properties";
		if(null == IbatisTestLoader.class.getClassLoader().getResource(conf)){
			conf = "ibatis.conf";
		}
		sqlMap = IbatisLoader.loadIbatis(conf);
	}
	SqlMapClient getSqlMapClient(){
		return sqlMap;
	};
}
